package com.hzh.mybatis.service.impl;

import com.hzh.mybatis.dao.UmsAdminDao;
import com.hzh.mybatis.model.UmsAdmin;
import com.hzh.mybatis.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hzh
 */
@Service
public class AdminServiceImpl  implements AdminService {
    @Autowired
    private UmsAdminDao adminDao;

    @Override
    public UmsAdmin login(UmsAdmin umsAdmin) {
        return this.adminDao.selectByUsernameAndPassword(umsAdmin);
    }
}
